#ifndef TUXINGWIDGET_H
#define TUXINGWIDGET_H

#include <QWidget>
#include <QToolButton>
namespace Ui {
class TuXingWidget;
}

class TuXingWidget : public QWidget
{
    Q_OBJECT

public:
    explicit TuXingWidget(QWidget *parent = nullptr);
    ~TuXingWidget();
    void paintEvent(QPaintEvent *event);

    QList<QToolButton *> getTuxingButtons();


signals:
    void sonOfTuxingIsSelected(QString drawingMode, QString sonMode);
    void isFilled(bool isfilled);  //图形是否被填充

    // 图形按钮选中触发的信号
    void changeDrawingMode_zx();
    void changeDrawingMode_tyx();
    void changeDrawingMode_jx();
    void changeDrawingMode_sjx();
    void changeDrawingMode_zjsjx();
    void changeDrawingMode_lx();
private:
    Ui::TuXingWidget *ui;
};

#endif // TUXINGWIDGET_H
